<template>
  <div class="loading" v-if="loadingShow">
    <img :src="require('@/assets/images/loading.gif')" alt="" class="loading-img" />
  </div>
</template>

<script>
export default {
  name: 'Loading',
  props: {
    loadingShow: {
      type: Boolean,
      default () {
        return true;
      }
    }
  }
}
</script>

<style lang="scss" scoped>
.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 3rem;
  .img {
    width: .8rem;
    height: .8rem;
  }
}
</style>